/*
 * Copyright (c) 2024 Huawei Technologies Co.,Ltd.
 *
 * openGauss is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *
 * http://license.coscl.org.cn/MulanPSL2
 *
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * ---------------------------------------------------------------------------------------
 *
 * imcs.h
 * Common head file to support ColStore
 *
 *
 * IDENTIFICATION
 * src/include/access/imcs/imcs.h
 *
 * ---------------------------------------------------------------------------------------
 */

#ifndef IMCS_H
#define IMCS_H

#include "storage/smgr/relfilenode.h"
#include "vecexecutor/vectorbatch.h"

const int VirtualCtidColID = -12;

/* The flag number of IMCUDesc status */
const int IMCUDescInMemory = 1;
const int IMCUDescInDisk = 2;
const int IMCUDescDeleted = 3;

/*
 * Judge whether offline CUID
 */
#define IsInMemoryIMCU(IMCU_FLAG) ((IMCU_FLAG) == IMCUDescInMemory)

#define IsInDiskIMCU(IMCU_FLAG) ((IMCU_FLAG) == IMCUDescInDisk)

#define IsDeletedIMCU(IMCU_FLAG) ((IMCU_FLAG) == IMCUDescDeleted)

#endif
